﻿using System;
using System.Collections.Generic;
using Mbs;
using Mbs.Windows;

namespace MessageBus.Threads.Module
{
    public partial class ThreadView : UserControlView,IThreadView
    {
        public ThreadView()
        {
            InitializeComponent();
        }

        public override IEnumerator<IDisposable> Attach()
        {
            yield return CommandNames.RunThread.Attach(btnStart, Constance.Events.Control.Click);
        }

        public void AppendText(string content)
        {
            richTextBox1.AppendText(content);
        }

        public void ClearContent()
        {
            richTextBox1.Clear();
        }
    }
}
